/**
 * jims
 */
package com.jims.master.modules.emr.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;

import com.jims.master.modules.emr.dao.EmrIspublicDao;
import com.jims.master.modules.emr.entity.EmrIspublic;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * Service
 * @author WangYQ
 * @version 2018-08-21
 */
@Service
@Transactional(readOnly = true)
public class EmrIspublicService extends CrudService<EmrIspublicDao, EmrIspublic> {
	@Override
	public EmrIspublic get(String id) {
		return super.get(id);
	}
	@Override
	public List<EmrIspublic> findList(EmrIspublic emrIspublic) {
		return super.findList(emrIspublic);
	}
	@Override
	public Page<EmrIspublic> findPage(Page<EmrIspublic> page, EmrIspublic emrIspublic) {
		return super.findPage(page, emrIspublic);
	}
	@Override
	@Transactional(readOnly = false)
	public int save(EmrIspublic emrIspublic) {
		return super.save(emrIspublic);
	}
	@Override
	@Transactional(readOnly = false)
	public int delete(EmrIspublic emrIspublic) {
		return super.delete(emrIspublic);
	}
	/**
	 * 根据机构查询电子病历基本项
	 * @param org
	 * @author WangYQ
	 * @return
	 */
	public List<EmrIspublic> findEmrIspublic(String org){ return  dao.findEmrIspublic(org);}
	
}